@echo off 
set aa=helloworld 
echo PRE:%aa% 
echo AFTER:%aa:hello=java% 
echo aa = %aa% 
set "aa=%aa:hello=java%" 
echo aa = %aa% 
pause 